﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Model.AdminInfo;

namespace TakeoutMangesBLL
{
  public  class AdminInfoBLL
    {
        public static Admininfo Login(string AdminUserName, string AdminUserPWD)
        {
            return TakeoutMangesDAL.AdminInfoDAL.Login(AdminUserName, AdminUserPWD);
        }
        public static List<Admininfo> AdminInfos()
        {
            return TakeoutMangesDAL.AdminInfoDAL.AdminInfos();
        }
        public static bool DeleteAdmin(int AdminUserId)
        {
            return TakeoutMangesDAL.AdminInfoDAL.DeleteAdmin(AdminUserId) == 1 ? true : false;
        }
        public static int InsertAdmin(Admininfo info)
        {
            return TakeoutMangesDAL.AdminInfoDAL.InsertAdmin(info);
        }
    }
}
